﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NetCore6WebAPITestOneEntity;

namespace NetCroe6WebAPITestOne.Controllers
{
    [ApiController]
    [Route("JWTAuthExp")]
    [Produces("application/json")]
    public class JWTAuthExpController : ControllerBase
    {
        /// <summary>
        /// System.IdentityModel.Tokens.Jwt认证方法
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        [Authorize]
        [HttpPost]
        [ProducesResponseType(200)]
        public object PostUser(UserinfoModel user)
        {
            return new
            {
                status = 200
            };
        }
    }
}
